﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class COMMENTBUS
    {
        public static void Add_Comment(COMMENT cmm)
        {
            COMMENTDAO.Add_comment(cmm);
        }
        public static COMMENT[] layBang()
        {
            return COMMENTDAO.layBang();
        }
        public static COMMENT[] layBangByID(int id)
        {
            return COMMENTDAO.layBangByID(id);
        }
        //tuy
        public static COMMENT layCommentByID(int id)
        {
            return COMMENTDAO.layCommentByID(id);
        }
        public static bool updateComment(COMMENT cm)
        {
            return COMMENTDAO.updateComment(cm);
        }
        public static bool deleteCommentById(int id)
        {
            return COMMENTDAO.deleteCommentById(id);
        }
    }

}
